package types

type TargetInstallationRequest struct {
	TargetId   string `json:"targetId,optional"`
	TargetPath string `json:"targetPath,optional"`
}

type TargetInstallationListResponse struct {
	Data     []AuthInstallationResponse `json:"data"`
	Count    int64                      `json:"count"`
	PageNo   int64                      `json:"pageNo"`
	PageSize int64                      `json:"pageSize"`
	Code     int64                      `json:"code"`
	Msg      string                     `json:"msg"`
}

type AuthInstallationResponse struct {
	InstallId string `json:"installId"`
	LoginId   string `json:"loginId"`
	LoginName string `json:"LoginName"`
	Type      string `json:"type"`
}

type TargetIsInstallationResponse struct {
	Data InstalledResponse `json:"data"`
	Code int64             `json:"code"`
	Msg  string            `json:"msg"`
}

type InstalledResponse struct {
	IsInstalled    bool   `json:"isInstalled"`
	InstallUrl     string `json:"installUrl"`
	InstallationId string `json:"installationId"`
	SignUrl        string `json:"signUrl"`
}
